package mypackage.servicce;

import mypackage.bean.Address;
import mypackage.bean.Clients;
import mypackage.bean.Goods;
import mypackage.bean.ReceiveOrder;

import java.util.List;

/**
 * @author YH925
 * @create 2021/12/10 19:16
 */
public interface HistoryOrderService {
    //购买完成后向历史订单中插入一条数据
    void insertOneData(String  goodsId,int clientId,int amount,double price,int addressId);
    //检查用户是否买过某一样产品
    Boolean findOrderByClient(String goodsId,int clientId);
    //清空购物车，将购物车中所有的商品加入到历史记录中
    void insertDataFromChart(int clientId,int addressId);
    //查询某人消费记录
    int findConsumeAmount(int clientId);
    double findConsumeMoney(int clientId);
    //查询某人历史消费记录
    List<ReceiveOrder> findAllConsumeRecord(int clientId);
}
